package com.ruoyi.study.paper.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.study.paper.mapper.StuPaperQuestionMapper;
import com.ruoyi.study.paper.domain.StuPaperQuestion;
import com.ruoyi.study.paper.service.IStuPaperQuestionService;

/**
 * 考试记录考题Service业务层处理
 * 
 * @author twj
 * @date 2023-05-18
 */
@Service
public class StuPaperQuestionServiceImpl implements IStuPaperQuestionService 
{
    @Autowired
    private StuPaperQuestionMapper stuPaperQuestionMapper;

    /**
     * 查询考试记录考题
     * 
     * @param id 考试记录考题主键
     * @return 考试记录考题
     */
    @Override
    public StuPaperQuestion selectStuPaperQuestionById(String id)
    {
        return stuPaperQuestionMapper.selectStuPaperQuestionById(id);
    }

    /**
     * 查询考试记录考题列表
     * 
     * @param stuPaperQuestion 考试记录考题
     * @return 考试记录考题
     */
    @Override
    public List<StuPaperQuestion> selectStuPaperQuestionList(StuPaperQuestion stuPaperQuestion)
    {
        return stuPaperQuestionMapper.selectStuPaperQuestionList(stuPaperQuestion);
    }

    /**
     * 新增考试记录考题
     * 
     * @param stuPaperQuestion 考试记录考题
     * @return 结果
     */
    @Override
    public int insertStuPaperQuestion(StuPaperQuestion stuPaperQuestion)
    {
        return stuPaperQuestionMapper.insertStuPaperQuestion(stuPaperQuestion);
    }

    /**
     * 修改考试记录考题
     * 
     * @param stuPaperQuestion 考试记录考题
     * @return 结果
     */
    @Override
    public int updateStuPaperQuestion(StuPaperQuestion stuPaperQuestion)
    {
        return stuPaperQuestionMapper.updateStuPaperQuestion(stuPaperQuestion);
    }

    /**
     * 批量删除考试记录考题
     * 
     * @param ids 需要删除的考试记录考题主键
     * @return 结果
     */
    @Override
    public int deleteStuPaperQuestionByIds(String[] ids)
    {
        return stuPaperQuestionMapper.deleteStuPaperQuestionByIds(ids);
    }

    /**
     * 删除考试记录考题信息
     * 
     * @param id 考试记录考题主键
     * @return 结果
     */
    @Override
    public int deleteStuPaperQuestionById(String id)
    {
        return stuPaperQuestionMapper.deleteStuPaperQuestionById(id);
    }
}
